Fix tests
Fix favorites functions like add/edit/...

terminateThis() was not properly called, breaking add/edit/remove
functions in Favorites pannel
:x

A little fix of previous commit on autocompletion, where a != was used
instead of a !==