Test cases throw error cases. Need to handle them