Adding tests for widgets caching

WIP
https://github.com/openscholar/openscholar/pull/6205#issuecomment-45434844
I don't think this will work properly if we have multiple widgets on the same page -- currently only the last one will be outputted.