Fixed error messages of v2 formatted_text endpoints, and added tests.