fix #53, new json persistence comes back with a trailing newline, but old test didn't need that because json persistence didn't have it.