Ensure db.sync() is finished before doing any tests