add unit tests for riak.js