added tests for failover