Add tests for TTL feature