added asserts to some of the unit-tests