Expanding unit tests and adding tests for getRecentPosts