Added check for status code so the test fails there instead of the
next line if the status is 404