code cleanup

torrents test