Add unit tests

Change-Id: Ife40aafb3d5cde4282d5f0c694c9bc798608871a
6 files changed