Fix length computation for TXT
Add tests for TXT record serialization