Fix to onyl run tests when test file exists.