KIJIMR-141. Improve tests robustness.

Do not rely on local environment.

Signed-off-by: Daisy Zhou <daisy@wibidata.com>