Add tests for model metrics.