Writing test for when user does not enter a page while querying