test for editing a post