Add testcase for PR3168. It was fixed over time.