Removed some code duplication.

Removed some of the code duplication between CreateNewTopLevelInterfaceTests and CreateNewTopLevelSuperClassTests.

This commit belongs to issue #20.
Removed some duplication in test code.

This commit belongs to issue #20.