Fix one part of testUNG that was just working by chance

The same mistake seem to be present in other parts of this test.
fix some other randomness of testUNG
fix random failures of testERP5Credential