Adding Unit tests.

Adding first unit tests for Key, Ticket and Esek resources.

Change-Id: I720bff3f04f4f70371caf89086fd0416f7c2b2e7