Fix race-condition in activity test migration test