updated tests to have cache headers for 404 and 301