c++: fix mapannotation.cpp test