Add fileconnection basic test and fix listImpl implementation

Nit: I'd append the exception to the message so the log shows the name of the exception in addition to the stack trace:

    th.fail("Unexpected exception: " + e);