disable handleExceptions when test is true in config