Add unit test for GetPostsCommand.