Fix spec for error message and add edit page tests.