add tests for exception classes