Turkey democracy and economy passed the test,' PM Erdogan