Unit tests for Injector.