Fixed the usage of the deprecated assertEquals.