Fix issue with ApiKeys in the api scope.
Merge pull request #2 from rjackson/add_tests_for_expired_at

Fix issue with ApiKeys in the api scope.