add test for custom error messages

Add not to readme about custom error messages.