Wrote tests for promoteToMaster
Wrote test for getMessages
Finished last test for clientFunctions