Improved test-case to check all DNS registers
Fixed bugs found by test cases