Thanks for your kindly help, I think it is much safe to get green card first, and then take the exam.Have a nice evening.