Add test case for addNewMessage in UserLocalDataHandler