tests for the exception class, adding support for arrays passed to exceptions