added unittests on some chat iterations, userlist, last_messages retrieval