Add fileconnection basic test and fix listImpl implementation

IIRC printStackTrace will also print the exception name and message. I've added it anyways because maybe it is easier to see in the logs in case the test fails.