Add test for GET method and fix errors with it