Socket output now has newlines. Added "integration" test for Listen