Create test for method that turns the cart array into a hash with values being the number of each item