Hande test case for #request: invalid api and invalid param