Fix up deprecated test case assertion method names.

This changes our unit tests to use the supported assertion methods instead of
the deprecated ones.

Testing done:
Ran unit tests.

Reviewed at https://reviews.reviewboard.org/r/6677/