Add page error factory tests