Put the test execution code inside included, so that the tests will be run whenever the module is included.