Fix Google Analytics.

We do modify memory variable during tests. With proposed solution we do not tear down it.