add tests for exc
add tests for exc