Testing the chaining of callbacks