Tests: fixed JSHint warnings