Have started adding ScalaTest tests, so that the development is test-driven.