Refactor edit a post test.