Unittest - Helpers to manage hook scripts during tests