Update and test editPost