Migrate functions tests