added full code coverage for widget manager