Added a test for chaining