added test for custom options