generalizing the test driver so it can be easily used for BLAS1 and BLAS2 testing