added unit tests for logger and log target

related to #1151
Merge branch 'master' of github.com:yiisoft/yii2

* 'master' of github.com:yiisoft/yii2:
  Fix typo