Updated tests & scripts to the new certificate way of auth