Set device properly so copying can recover context. Enhance test to catch this case. [ROCm/clr commit: 23a58775df]
23a58775df