added test for Formatter when formating fails (closes #12)