added tests and client mock code for server process_post and fetch_post_data methods