unit test for invalid units handling in _make_cube