Add test coverage for "invaid request" API response