Add unit tests for potential JSONification problems