Tests and bugfixes for object-server REPLICATION

Change-Id: I83bcdde842c02130d8626e193f4df1e9c189e948