try to fix client tests, fix migrate script