Added a test case for errno