Fix model equality test (#293)