Tidy-up unit tests
Add stop() method to the Torrent class
Update StopIf to use the new stop() method