Update test.rb

created function for writing backup to file