compare only the host name part of insecure registry entry

Signed-off-by: Kamil Domański <kamil@domanski.co> (github: kdomanski)
update unsafe registry matching tests

Signed-off-by: Kamil Domański <kamil@domanski.co> (github: kdomanski)