MB-100: Undefined function calls from EStests

- Replacing undefined function calls with
those that exist

Change-Id: I4f49de1422906459b4147ef1942c3344d2ce2fce
Reviewed-on: http://review.couchbase.org/29116
Reviewed-by: Ketaki Gangal <ketakigangal@gmail.com>
Tested-by: abhinav dangeti <abhinav.dangeti@gmail.com>
Reviewed-by: abhinav dangeti <abhinav.dangeti@gmail.com>