Tests: add support for grid unit

Signed-off-by: Simon Busch <morphis@gravedo.de>