GET resource has error callback now
Added unit tests for GET and POST