Testing for database synchronization