Add codec to restlient test.
Merge pull request #1640 from ddysher/restclient_test

Add codec to restlient test.