Fixed malformed_url error.
Fixed test for magnet link parsing.