Unify TTL interface, add tests