Fix default get_publish_direct_messages customizable method and related test