Use accessor method in test