Add Contacts test.

Fix decoding bug for contacts.