made the tests for loading a page better