adding before_restart test