Single quotes denote a character. Double quotes is a string.
Use "testar"
Use double quotes:
testmap.insert(pair<string, property>("testar", testprop) );
For things like this pair<string, property>('testar', testprop) I like to use embrace enclosed initialization.
testmap.insert({"testar", testprop}); or even use the emplace function
testmap.emplace("testar", testprop);
thx. The quotation marks solved the issue