add unit test

Signed-off-by: Lars Martin <lars.martin@smb-tec.com>