Fixing race condition for params test.

Change-Id: I19de0659ac80b46bc06cee27e3e483299ee5a9b5