refactor to clean mocked http state on tearDown