Finished match model and tests.