fix tests with uncaught error