Add tests of a few pure functions