fix test_consistency