catch signal in protocol test example.