oog.vec.Matrix4.setElement(m0, r, c, value);
        assertEquals(value, goog.vec.Matrix4.getElement(m0, r, c));
      }
    }
    assertElementsEquals(
        [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], m0);
  }

  function testAdd() {
    var m0 = goog.vec.Matrix4.createFromValues(
        1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);
    var m1 = goog.vec.Matrix4.createFromValues(
        9, 10, 11, 12, 13, 14, 15, 16, 1, 2, 3, 4, 5, 6, 7, 8);
    var m2 = goog.vec.Matrix4.create(