Implemented tests for a Promise library