Generate code in test directory with BMatrix.c