Added test cases for empty input.