Test metadata logic in models and views.