wip coverage
merge ruby unit tests from @nwallace