Make sure the tests get the newly created page

Currently, all gen'd tests were checking against `/`
This PR makes sure that the gen'd tests check against the gen'd page.
(eg: `/pageName`)

Also simplifies error handling slightly.