Replace deprecated test assert statements.