Add testcase for JSCBC-24

Change-Id: I6e0bc7dc4ad09f757419c9db7cf8e962023e6404
Reviewed-on: http://review.couchbase.org/25874
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>