Move a tests config parameter to a yml file. Remove redundant contants

Make the basic app tests configuration similar to the advanced app one. As introduced in #4671. See
https://github.com/yiisoft/yii2/pull/4671#issuecomment-51759414