The vote in Görlitz was viewed as a test for the anti-immigration party ahead of regional elections.