Added tests and edited Installer class.