Model and controller tests for tags