cut off tests from main code