Added test for method calls