Updated unit tests.

Made them more exhaustive with regard to the data we're populating.
Added a method to reset the DB on demand, and made setup and teardown
class methods, so they're only called once during the test.