Resolves undefined variable 'flags'
Updates test, adds local copy of public suffix list