add some tests to unittester
fix uninitialized access in packages.c. remove unnecessary initialization