Wrote spec tests for 404 handling