Add tests for serializable and work around the fact that JsonObject wasn't serializable because of EfficientString