add wait for insert test