test exception handling, too