Fix jsHint warnings in tests