Fix for random test failure due to inexact json dumping.