Adding tests for widgets caching

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