Person class and test in encapsulation.