Fixed REST ttl test using eviction listener instead of thread.sleep