Some logging when json can not be parsed
Add logger to tests