Also, may be it is right to test this technique with several files, to ensure that function calls different callbacks for different files. But it depends on hard-level we want tests to be (if it's API, probably it is required to be hard).