Updated unit test for HTTP status codes