Fix test for multi-dimensions