It seems like the test script and the contracts and transactions executed using Test.executeTransaction are not sharing an environment. This is not clear anywhere in the documentation. Accessing block information, for example, from the scripts executed and within the test, doesn't result in the same block.