callback resource and unit tests