Add testcase for DR39 from PR5916.