Test classes rather than equality in billing events

This works around MySQL and PostgreSQL adapters claiming that an object
is not in a collection even if all of the attributes are the same.