Add tests for error messages (user pages)