What problem did you run into because this file was empty? Maybe you can assert that that doesn't happen instead of relying on inspecting the implementation detail of the file? :)