fix tests, migrations