Add more test for MalformedURLException am: 8fb5c96082 am: 9993b98822

Original change: https://googleplex-android-review.googlesource.com/c/platform/libcore/+/18234478

Change-Id: Ia0844988d2af43ab4f65b91ce82c243705fc3579
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>