[BZ-973661][BZ-973677] fix check for use of stream mode when necesary + sliding windows related tests