Wrote tests for tag model