fix CS
added new test, for testing exception throws
fix missing `use Cake\Error\Exception`