[test] Add failing test for optional callbacks
[api] [fix] Don't autocreate callback if it optional and not provided