Setter and getter tests of paymentperiod attribute