Added injector for fields and some tests with it.