test exceptions