add test cases for nested grid