add cache to contact and group. Add hamcrest asserts