test grid functions