Wrote a test

For the recursive version of the total function. Still doesn’t work
properly I think.