Add test for chained promises