Symfony 2.6 tests and code design