added test for callback with optional route parameter