Add tests covering issue #1 (bails on too few pts)

This adds a dependency on HUnit, so I've kept it separate from the corresponding fix (see separate pull request)