Add tests of functions to sync database.