Added shebang for runtest
Handle situation where dav does not send length