Renamed a few exception classes, and added unit tests.