Speed up the tests.

Populate the DB once before a set of examples instead of every time for each example.