Add testing stage for cap deployment