Add unit tests for expire hook
expire() is not static anymore
Merge pull request #122 from owncloud/fix-expire-hook

Fix expire hook and add unit tests