inject method created and tested