fix errors in test and code coverage for riak client

This passes tests consistently now