[api] fix test suite on SLE11

Avoid comparing <comment/> with <comment></comment>

They are equal on all useful meanings, but not if you compare strings