added Matrix tests