better spec for contraints
test custom_fields functions