test for custom generator