Add tests using Promises API