test: Moved test to unittest framework

Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com>