This patch adds unit test for the client module. Change-Id: Id6d03800bb082a48f1586fa75185c9ddb696a49b