Codecept: Class does not exist

I got strange error:

Class frontend\components\CustomRequest does not exist

But class exists and I currently stuck with it. What should I do? Is that something that I need to configure?

Found the solution. All the problem was in _bootstrap.php file in tests folder. I have just copied _bootstrap.php file from new yii2-advanced template.