test ttl and number of messages