JSHint and JSCS fixes in tests.