Fixes to test_promise