Alter to match other optional callbacks and add tests

Change to `localize_callback` attribute to match other callbacks.

Add corresponding tests to maintain 100% coverage.

Update documentation to reflect changes.