Replace deprecated test assert statements (assertEquals).