test for class