test json encoding
clean up