Fix failing tests due to promise-hidden exceptions and uncatchable asser...