simple write to file test