Added test case for file overwrites.