MB-9730 Add unit tests for id and view btree purge functions

Change-Id: I40b0a8a060ef35677b6cf027fa0cf1dc8cff6373
Reviewed-on: http://review.couchbase.org/30757
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>