Unittest of exceptoiins