Enforce that all classes to be tested must have a main entry point

We are going to get the IR directly from CGNodes. For CGNodes to exist,
there must be a path from an entry point (typically main). Thus, we make
all test classes have a main for convenience.

See #46.