fixed test cases.

Change-Id: I8fd3c435d9c7416e382bfa24667a1e9ebe20a7c5
Reviewed-on: http://review.couchbase.org/41171
Reviewed-by: Pratap Chakravarthy <prataprc@couchbase.com>
Tested-by: Pratap Chakravarthy <prataprc@couchbase.com>