Added spec for matrixTest