bug in testclient error handling