Fix file size test
Make getModified test more robust