working test framework + some bug fixes
convert varmaps