Added tests and client.stringify()
Added comment