Cython port: Switch use of HasTraits.set to HasTraits.trait_set in tests