Fixed doctest error.
Added test for api.get().