Code for software carpentry discussion about unit-testing array element summation