added exception handling code back into core_exceptions test