fix ttl on portmapping, fix tests