fix randomly failing migration tests