Fix domain_constraint test