Unit test of simple chaining