tests for classes with assert in body