Added unit test for message batch while queuing up