test for a class