Store plugin ext in cache to respect uris.
Fix incorrect uri redirection bug.
Cleanup tests with global setup function resetting everything.