Port deserialize client test cases to Mocha.