Add some unit tests for network client

* Work is not completed here yet.

Commit references #38.