Make Error constructor private
Update phpunit setting
Add notification test