fixed server stop in mqueue.c and tests added in tests/test.ml