test: promise: fix reference error
test: promise: fix jshint unused variable error