Tests for equals, hashcode and to string methods of violation model.