fix cosistency checking test