add tests of get_client_ip() and get_user_agent()