(#942) Added tests that check if replicate reports errors