Add test for ignoring ~$ files