is a good point. we use assertion errors all over the place to do actual assertions on domains. feel free to change and PR if you feel strongly