fixed configs

In tests and console commands files this file will be merged to all as it is done in `index.php`, and we dont need this modules in tests and console. Similar to yii2-basic [app](https://github.com/yiisoft/yii2/blob/master/apps/basic/config/web.php#L38).