Unit test for invalid Url

Change-Id: I06aabfcf83b40b372625761aecc206ea7b6ba4b7
Reviewed-on: http://review.couchbase.org/42796
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Simon Baslé <simon@couchbase.com>