#3103 added testcases.