add unittest for an exception