added json encoding test