add tests for the replication _missing service
read files in binary mode in test helpers