testing global exception handling