Make sure all links have the right protocol
Fix up tests