CBQE-1332: create a test to check allocated memory

Change-Id: Ia6cc1cf9473808fc34399b9febb40b70447afcda
Reviewed-on: http://review.couchbase.org/27129
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Deepkaran Salooja <deepkaran.salooja@globallogic.com>