[libptcp] add test