test the method