add test to purge db doc history

CBLDatabase api testing
add test to verify doc_count after purge
verify revids reset after doc purge