JAL-4366 account for 3dmat matrix in tests