add test that invalid contacts are not saved