Added LDA tests for Z/N flags