add test for invalid post edit