unit tests for #1860

Contribution to https://github.com/ceph/ceph/pull/1860