organizing exception assertions and tests