Replace some repeated tests with parameterized tests. Code smell found by SonarQube.

1 job for parameterized-tests in 5 minutes and 59 seconds (queued for 7 seconds)