added unit tests for vg.array
simplified test cases