Added unit tests for person class and refactored person class