add test for non-empty file