add Matrix test