Make JsonFactor a local singleton for all Encoders and another for all
Decoders
Clean up tests