Added friendly message to response errors and fixing tests.