Added testing code for message_post and fixed a test case for message_thread