This should eventually be refactored into a ScalaTest test suite and placed with the other test sources.