Tests coverage

- Added test case for covering null check of grid query keys.