proxy: move test to seperate file
cert: create seperate get_wildcard_cert for clarity