test getter and setter