Test accessing global callback function using foreign_value.