Turkey's local vote a test for Erdogan and rival