added minimal test case for protocol error handling