tests: Add a test for the NS record handling.