Added File Writing Tests