Replace foreach with array_map in Torrent model
Add tests for the __toString method of the File model