cloudant request logging and tests