Add test for chaining.