Matrix and vector math tests