Fix the broken afunc tests