make compliant with promises tests