test: add an unit test for XapianWritableDatabase

To test the bug we just fixed.
xapian-glib: remove duplicate type macro definitions