be more hygenic in tests
Use 'withCallingHanglers' rather than 'tryCatch' so we don't get useless stack traces