Extract 'socket.getLogs(callsTo('writeln'))' into a variable in these tests to make it a bit easiter to read.