TDD for autocomplete

Able to show partial hints, full hints, and autocomplete.
Fixed some bugs related to autocomplete

Now it's done!