fixed message repetition bug
added test case for user disconnect, improved test cases