Add vector tests and fix a bug in matrix / vector multiplication