WikiaMobile: Fixing unit tests for autocomplete.js