added test for page error factory