add unit test

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>