Add test for plain replicate api
Change the order of parameters in replicate
Remove unwanted console.log
Merge pull request #595 from chunmun/572-broken-replicate

572 broken replicate