updated tests to compare with Ruby built-in inject method; added method that checks to see if the user has passed in a symbol and converts it to a symbol