Changed write file test