added a few tests that involve creating a class and a test file from a single source
Related #2295 (closed)