cleaned & DRY'ed up tests, also added specs for _count reduce func for keys
Added a counter using _count reduce function in couchDB