One more important thing I forgot to mention. Ingame, rest turns are not counted like they are on netbattle. So if you went on a rest turn and you switch out, then the game would reset the rest turns back to 2, meaning you would have to sleep for 2 turns again. However on Netbattle, if you went once during a rest turn and you switch out, your turn would be counted. So if you were to swich your pokemon back in, you would sleep for one additional turn and wake up the next one.