Fix jsHint warnings for tests