test for methods