Add unit test for Promise+Ajax