CMFActivity: fix test_mergeParent on Python 2.7

Messages passed to a grouping method are not sorted.
testDynamicClassGeneration: fix testConstraintAfterClosingZODBConnection on Zope 2.13