Fixed a file access problem that was not allowing all unit tests to succeed in one go (they used to only succeed when executed separately).