Upload unit testing code for edit post