Fix for recursive test entry by testing for '__main__'