Added test files for messages.js, posts.js, and history.js into /tests/unit