Add tests for reverse_domain assignment