+ test with method definition