Merge pull request #11 from tomgalloway/master

Expired keys are now tested correctly.
Tests added as suggested by nosetests coverage.