Fix unit test for exception thrown by non-callable protocols

Ping @tarnfeld