add tests for vectored and matrix code paths