fixes tests for JSHint2