adding some tests, fixing handling of options in get()