Added ability to go back to previous pages, and tests to check page rules