Write test for submitting posts