CBQE-0: reimplement min_changes test

Change-Id: I2d87917ccb5fa62a29ab5d015a80ac01777ff9da
Reviewed-on: http://review.couchbase.org/32795
Reviewed-by: Iryna Mironava <irynamironava@yandex.ru>
Tested-by: Iryna Mironava <irynamironava@yandex.ru>