Test and method created for inject with an argument and a block