Fix `MultidimensionalArray` unittest.
Use unittest examples where possible.
Small unittests refactoring.