Added more robust tests for inject method