Adding tests for widgets caching

WIP
https://github.com/openscholar/openscholar/pull/6205#issuecomment-45434844