Virtualgrid: add unit test.