Detect when tests are defined