finished testing the array inject method