added unit test

Change-Id: Icc19a79eab6ee40d8e64526b082aa6f924ee9f24