add some test to Matrix