consolidated anonfun tests