Adds test for multiline array.
Adds implementation for multiline array.