added some tests for matrix operation, seems to work