Added a simple injector for hook testing.