Added inject method test.