Fix expects not actually testing returned values
Add initial work for testing database sync promise