updated tests
Added utility method in protocol for eventually handling exceptions