fixed unit tests for injector

There are 3 commented unit tests that probably belong to another class
now. Will have to check that.