add tests for restricted pages