Prevent variable leakage in test suite

Some of the test cases are leaking variables into the global scope, because they're not part of the `var`-statement, i.e. they're delimited with `;` instead of `,`.

This pull request fixes the issue by prepending a `var` to the offending declarations.