update failover test code