[INTERNAL] added tests for the connect task

- also fixed the newline separators