Add Mat.java tests