unit test infrastructure

HI Sasa, 

as promised, here the basic unit test infrastructure.

Regards,
Roman