Fix tests and don't log JSON