test to write to message queue