Added more test cases for demonstration.