test multiple matrix