Fix POST and GET and add Mocha Test for POST