Adding test cases for errno