Write ipn_listener method tests