test with object injection