add objectIDs to resources in the tests

for now they are left empty ("" empty strings)
close the irods connection correctly

the case that a tuple was returned, but not containing
a generator was not handled correctly:
the connection would be kept open.