Converted infinite loops to finite loops
Added failure indication to loops
Fixed small typo
Fixed correct comparator
Merge branch 'remove-infinite-test-loops' of github.com:cmouse/pdns into cmouse-remove-infinite-test-loops
fix whitespace