Tests commit for database