Added support for Sensio Generator 2.2 (to not break support for Symfony 2.2 projects)

Added unit tests