Fixes #6 use correct reference for error_handlers

Fix the error_handlers reference and add some tests.