unit test for cpr::exception