Add `generateTest()` to check if tests should run.