Refactored 'display_particular_contact' function and added several unit tests