add favourites join table for authors and messages, and add unit testing for messages model