If it helps--I had to do this for my "last_reports" migration, so you could steal some test code from that pull request (#595).