Test callback function.