Unit tests for addField and addContact APIs