You should change all of these test cases to use matrix and vector operations.