This allows for inclusion of the test function/file in a program with an existing main(). This is an isolated piece of #19.