mock riak client
initial tests and bug fixes / refactor