Don't add a '.' prefix on the record header on apex records
Fix occasional test failure for NS records configured in legacy format

(no code change, just fixing the test)