Add unit tests

For smcards, chassis, system, fantrays, pools, interfaces,
powersupplies, scards.