Make the quote error message more explicit & add test case