added code to test sparse files