added unit tests for vg.keys (copied from d3 unit test for d3.keys)