test for wrong exception type