Added test case for GitHub issue ldc-developers/ldc#662.
Added test case for GitHub issue ldc-developers/ldc#739.