add tests for custom permalinks