test for error message for edit page