This code is best tested with larger functions with more EBBs. Perhaps a new file-test category is in order?