add ststus validationa nd tests