JsHint's warnings fix in tests