add hunit, some tests