Use assert instead of manual if/exception.
Improved Database tests, added logging for AddContactsActivity.