refactored PathPatternGeneratorTest
refactored MatchingPathsGeneratorTest
refactored NamePatternGeneratorTest
refactored FilesFunctionTest
added missing tests for escape sequences to StringTest