added port_agent timestamp and more unit tests