testing in the morning.

So they say it's best to take an at home test when you first wake up. What if you work graveyard ? Should you take it in the morning when you go home or wait til you sleep first then take it ?