Create real, testable nginx config
Add tests. And fix auto-refactoring issue.