add request_test.js
Merge pull request #2 from rafty/checkRequest

add request_test.js