Replaced calls to obsolete assert methods in unit tests.