[INTERNAL] added tests for the connect task

- also fixed the newline separators
This isn't needed, right?