Fix tests to pass jsonParser as arg