Fix tests on windows

Change-Id: Ia613e3a8bc291e13085865a4dcee3d8b717f6db9
Reviewed-on: http://review.couchbase.org/28249
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>