Testing failover in various scenarios