test with inject method