copying changes from the hibernate3 plugin

The test shouldn't make assumptions about the order of elements in a Set