Added test for using .then() in middle of extended chain