Police passed democracy test, says Turkish pm