Add unit tests

Change-Id: I3ec31859259ce74b5eae4eaba94648f8a4fab077
7 files changed