fixed some tests broken by 8fff83efa935e116acb27edc60c21c5f633f86f2

`should collapse load of same file` test is still broken, head.load is called multiple times with the same file.