made shouldFindMultipleClassesAsStrings test pass and refactored duplicate test code