grid-margin fix for tests