Fixed, big data causes error on read_until_pattern. Added test for read_until_pattern.