Fixing condition in a test to wait for the result
Fixing JSON converter (RC). Fixes issue 3185