test of class method