refactoring tests with parameterized ones