improving bundler exception handling when running tests