Changed how the NODE_ENV is set to test in tests.
Added linting of tests.
Fixed linting of tests.