Add test for connect.directory interaction