add test that can reproduce the cloudant bug