forgot to malloc the testmap/coefs