Add solution for sum; also fix tutorial unit tests