Add: a convenience routine, assertEmits, for easy unit testing use.