Added option to specify test class pattern.
Changed file get to list comprehensions and fixed regex check for test pattern.