exception unit tests