Adds tests for 'global' ttl. Closes #1.