It seems from your test that you run even callbacks from the parent package?
For example, in the test you mentioned, ``fooToplevelBefore`` is expected to run, even though it is one package higher than the test function, not in the same package. Is this correct behaviour? Wouldn't that mean that a very large number of callbacks would run, some probably by accident, if you have many packages?