Updated deprecated function
setting the request method
Some fixes to make the stuff works
Asserting the erros