event_queue_before_deferred_queue and added tests to check combined usage of message / deferred queues