Changing return type of POST and PUT methods.
Fixing tests.