Parametrically driven sine-Gordon equation and Painlevé test