This test code is assuming what the serialisation is - it would be better to test via the API instead:

```
    TEST_EQUAL(weight.serialise(), Xapian::TfIdfWeight("NTN").serialise());
```