Replaced assertEqual usage with assertTrue and assertFalse.