Tests for category controller