Changed promise test error