refactor to clean mocked http state on tearDown [AEROGEAR-982]