Sets up models and tests.