add unit test for auto politics JSON read/write