New testing routines, pulled ttorrent into code base for testing purposes