Testing loadPage method and loading widget