test for classes