Refactored test code a bit.
Invalidation event.
A bit of refactoring.
Merge pull request #13 from limulus/invalidation-event

Invalidation event. Fixes #3.