test and fix join_subfields_with