properly set flag if tests are build