add basic and cunit tests