fix test pollution when lets are used in before(:all)

Change-Id: I6d09877aba43b916045d41625f951cb26c54bae3