update: add unittests based on gtest.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>