Extract riak_core_connection and tests.