Fixed the autocomplete porting issue for tests

The autocomplete portabality with the jquery version update to tests.