Add test for parse() and don't limit ref domains to external ones