Added test to verify method calls