fix tests for error pages