added a test for validating that the install hooks were invoked
implemented tests for install and uninstall hooks, fixed uninstall hooks