tests improved

Related with this issue - https://github.com/yiisoft/yii2/issues/2352