RHS Sub unit testability

When writing the eunit tests for riak_kv, I noticed I had no way of including the mapping my `platform_bin_dir` depended on without reading in the riak_core schema. This PR allows you to pass in a schema that you can define in the test.