detect if tests should be built