Test version with libmatheval, and some memory correction