Fixed migrate functional test