Refactoring tests of converter class