Rewrite test for clear handler cache.
Merge pull request #195 from globocom/fix-clear-handler-cache-test

Rewrites test for clear handler cache.