Yii2 advanced tests fixed

Fixed `yii2-advanced` tests. Related with #2476