adding more unit tests for grid and history, smaller work on VM