Fixed global search autocomplete not disappearing

I’ve fixed the autocomplete not disappearing on focus lost. I also
fixed problems with modules so now testing is possible. #7