Add test for file expand behavior