You're right, when writing the test I just assumed it would just get the page without performing additional checks. After a doublecheck it is indeed throwing an exception in case of 404.