defining test_method method