Add test for custom detail.