Bring unit tests from FSharpx (#2) + Improve Json API