Adding tests for widgets caching (PR vs 6043-2)

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