Fix indentation for errors class
Add test, to assert raising an error
Fix and activate debug mode