add test for 1d matrix dot