unit_test: initial working

Change-Id: I11865fd93c3ad5be9433979861db923f9e4875ca