fix #439 Enable Lint on test cases

One of the tests added in #439 is leaking a global. This commit enable linting on all test files and consequently fixes them