Unit test for libxml entity bug