Upload unit testing code for get a post function