use test helpers

Change-Id: I7dc6bbb09a4252e0dfccb1be434769873a7f32d4
Reviewed-on: http://review.couchbase.org/24025
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>