connection.js tests