Tests for permalink handling in catalog directive