Adding tests on equals on domain objects in security