Got tests for promise version working