PHPUnit

* Added excluded directory
BundleController

* Create test for indexAction when generateFile fail