test class method