Use JSONAssert to assert on json strings

Rewrite all tests assertions on json strings using JSONAssert. Fix #162.