Upload unit testing code for get all posts