Some tests on promises