Add dispose method test.
Return instance of Autocomplete for the first matched element if called without arguments.