anchor.diff:      ?assert(is_binary(InstanceStartTime)),
       ok.
   
  +config_test() ->
  +    Server = couchbeam:server_connection(),
  +    {ok, {AllConfig}} = couchbeam:get_config(Server),
  +    ?assert(proplists:is_defined(<<"httpd">>, AllConfig)),
  +    {ok, {HttpdConfig}} = couchbeam:get_config(Server, <<"httpd">>),
  +    ?assert(proplists:is_defined(<<"port">>, HttpdConfig)),
  +    {ok, Port} = couchbeam:get_config(Server, <<"httpd">>, <<"port">>),
  +    ?assertEqual(<<"5984">>, Port),
  +    ?assertMatch({ok, <<>>}, couchbeam:set_config(Server, <<"couchbeam">>,<<"test">>, <<"1">>, false)),
  +    ?assertEqual({ok, <<"1">>}, couchbeam:get_config(Server, <<"couchbeam">>,<<"test">>)),
  +    ?assertEqual({ok, <<"1">>}, couchbeam:set_config(Server, <<"couchbeam">>,<<"test">>, <<"2">>,  false)),
  +    ?assertEqual({ok, <<"2">>}, couchbeam:get_config(Server, <<"couchbeam">>, <<"test">>)),
  +    ?assertEqual({ok, <<"2">>}, couchbeam:delete_config(Server, <<"couchbeam">>, <<"test">>, false)),
  +    ?assertEqual({error, not_found}, couchbeam:get_config(Server, <<"couchbeam">>,  <<"test">>)),
  +    ok.
  +
   collect_mp({doc, Doc, Next}, Acc) ->
       collect_mp(couchbeam:stream_doc(Next), [{doc, Doc} | Acc]);
   collect_mp({att, Name, Next}, Acc) ->
  
positive.code:         {<<"target">>, couchbeam_util:to_binary(Target)} | Options
      ],
      replicate(Server, {RepProp}).
  
  %% @doc get list of databases on a CouchDB node
  %% @spec all_dbs(server()) -> {ok, iolist()}
  
negative.code:             {DocProps}
      end.
  
  update_config(#server{url=ServerUrl, options=Opts}, Section, Key, Value,
             Persist, Method) ->
      PathParts = [<<"_config">>,
                   hackney_bstr:to_binary(Section),
                   hackney_bstr:to_binary(Key)],
      Url = hackney_url:make_url(ServerUrl, PathParts, []),
      Headers = [{<<"Content-Type">>, <<"application/json">>},
                 {<<"X-Couch-Persist">>, atom_to_binary(Persist, latin1)}],
  
      Body = case Method of
          delete -> <<>>;
          put -> couchbeam_ejson:encode(Value)
      end,
  
      Resp = couchbeam_httpc:db_request(Method, Url, Headers, Body, Opts,
                                        [200]),
      case Resp of
          {ok, _, _, Ref} ->
              {ok, couchbeam_httpc:json_body(Ref)};
          Error ->
              Error
      end.
  
  -ifdef(TEST).
  
  -include_lib("eunit/include/eunit.hrl").
  