Write test cases for covering all the conditions.