Set device properly so copying can recover context. Enhance test to catch this case. [ROCm/hip commit: 94c85fd4fc]
94c85fd4fc