D'oh, you're right. I've sent a partial revert for this. Seems like that part isn't tested, as make test in netapi32 worked without any problems.
Right, there isn't any way to test it. We can't run NBT servers in Wine as normal users (requires a low port #, conflicts with Samba), and we can't count on an external server being present.
--Juan