add test for chaining select