Fixed mocha complaint about global leaks

- added var keyword to options so that mocha does not complain about global leaks