Enhance package_install header, add package_remove and tests for both of them