you could set username to 'premove' and in postmove do $document->username .= '-postmove' and check if username became premove-postmove. that would check the proper order of events.