Documenting exceptions + tests