Reset mocking environment in internet gateway tests