code refactoring of Person tests