Fix tests and add error route handlers

This pull request addresses issue #27 by adding error route handlers.

It also fixes up the tests (issue #21) and fixes a bug with async transformers on blank fields