Add test for request() error object structure and message