Add if __name__ == '__main__' to remaining unittests
filedes.pipe() should return a tuple, not a generator