Added test for error conversion