calc_PCVelements and tests