Adding tests for Promises