Add test cases for #1.
Add test cases for #1.