added tests for inject with argument and block