Optimize injection finder.
Add tests for injection finder.
Fix deprecated require.