Bug 909017 - Fix test-coverage incompatible unit test

Because blanket will execute script again in mocha unit testing that cause global variable redefined twice and fail.