Reset mocking environment in route tests