fixing tests and starting a global hooks package that will register hooks