Add tests for Promises