Add a unit test

Signed-off-by: Ian Macalinao <ianmacalinao@gmail.com>