Reverted removing window.onload, because it does not work on real projects
Removed unused test code
Implemented cacher refreshing, fixed issue in test controllers