Improve unit tests for contacts model.