Added tests for handleUserLogin and handleJoinGroup