Fixes and small refactoring

- Added missing SPF record
- Fixed tests so they can be called directly on cmdline using ruby
- Refactoring of storing SOA dialog