Add test cases to cover error handling code paths