Set default replication timeout in 3s
Add more test cases
Refactors