Added several test cases.