Rule domain class + tests