Implemented unit tests for ObjectInjector.