Any tips on how to test this? setTimeout() perhaps?