fix tests around error page copy