Fixed the testsuite with Symfony 2.3

The CssSelector has been rewritten entirely for 2.3 and the generated XPath query is a bit different for classes (based on the latest version of the original Python library).

I'm detecting one of the interfaces added in the rewritten version to figure that it si used as there is no version constant in CssSelector (only HttpKernel has it)