Add more test and fix a few bugs

(fix unable to install panel after a call to uninstall_all)