completed createNewPage fxn and failing test