bugfix + testcase for error handling in batch response