Add test to read/write to file in place