tests for optional callbacks