New character test should exclude long-term residents, child migrants: Greens