Add test for promise chains