fix test on jenkins
Don't rely on the entity/value's equals/hashcode method