Fix suggestion test: wait for db to be connected