improve test for sendfile so that mac osx fails as it should since it has a different interface