add test for method chaining.