Fix rest module to reset request variables in the before hook

The rest module is not resetting the headers on each test, thus carrying the same headers all over the test suite. This PR fixes that, resetting the server parameters of the client on each test.