Use `os.path.splitext` to check file extensions.

File extensions were found by string parsing before. The search for tests and groups was also inconsistent. I have imported the standard library method for finding extensions. Both searches now assume a single directory contains all groups and tests.