move constants to helper.js
add live tests for request