Unit tests passing with Promises/A+-compliant promise implementation