Added a test for multiline function in single line array

Refs #750