added members tests and fixed some bugs
added test for message
cosmetic changes