Fix bug with $test_mode, it had to be declared earlier
Spelling fix
Pedantic comment fixes
Remove unused ${postfx}.

Postfix idea was abandomned few years go, yet somehow this variable
survived.
Merge remote-tracking branch 'upstream/master' into valid_ttl
Fix ValidTTL to return proper code. Update tests.