On the Linear Consistency Test (LCT) in Cryptanalysis with Applications