Fix test that ensures stat != ok rejects the promise