added test to verify we can write to file