defining person class and unit test for the same