Add test case for snapshots when files are involved