added a test for the ttl