Add RequestOptions constructor with string

Add a RequestOptions constructor that takes a string instead
of a URI. Modify the basic-test function to use the string
constructor.