adds isNotTest method