Passed test for I and added test case for II.