Add test for logging of errors.
Add a default rule to make working simpler.

Fixes #1.