Fix hashcode and equals for Integration-Test