Added tests for chaining method calls