fix side effects of migration tests