Refactoring of install & uninstall tests