add a before_restart.rb for testing