Added unittests for GET and POST methods