Codeception unit tests fix and enhancement

Added functionality to run unit tests correctly with yii test-cases (CTestCase, CDbTestCase, etc). also fix for the #197