Add test for close/login and get_file case