Add tests for URL parsing